<?php
/**
 * Minhlog Domain_Entity 页面类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Page.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Page extends Domain_Entity_Abstract
{
    protected $_pageId;
    protected $_pageTitle;
    protected $_pageContent;
    protected $_publishTime;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setPageId($primaryId);
    }

    public function getPrimaryId()
    {
        return $this->getPageId();
    }

    public function setPageId($pageId)
    {
        $this->_pageId = (int) $pageId;
        return $this;
    }

    public function getPageId()
    {
        return $this->_pageId;
    }

    public function setPageTitle($pageTitle)
    {
        $this->_pageTitle = (string) $pageTitle;
        return $this;
    }

    public function getPageTitle()
    {
        return $this->_pageTitle;
    }

    public function setPageContent($pageContent)
    {
        $this->_pageContent = (string) $pageContent;
        return $this;
    }

    public function getPageContent()
    {
        return $this->_pageContent;
    }

    public function setPublishTime($publishTime)
    {
        $this->_publishTime = (string) $publishTime;
        return $this;
    }

    public function getPublishTime()
    {
        return $this->_publishTime;
    } // set/get方法定义结束
}